package com.isunland.managesystem.entity;

/**
 * 对象功能:
 * 开发公司: 北京信普达系统工程有限公司
 * 开发人员: wangyanan
 * 创建时间: 2017/7/10 14:43
 */

public class SimpleWebViewParams extends BaseParams {
  private String url;
  private String title;
  /** 是否显示刷新按钮 */
  private boolean refreshButton;
  /** 是否刷新位置,和普通的loadUrl不同,会先获取位置,生成关于位置的url,在调用loadUrl */
  private boolean loadLocationUrl;
  private boolean loadUrl;

  public boolean isShowLoadingDialog() {
    return showLoadingDialog;
  }

  public SimpleWebViewParams setShowLoadingDialog(boolean showLoadingDialog) {
    this.showLoadingDialog = showLoadingDialog;
    return this;
  }

  private boolean showLoadingDialog;

  public boolean isLoadUrl() {
    return loadUrl;
  }

  public SimpleWebViewParams setLoadUrl(boolean loadUrl) {
    this.loadUrl = loadUrl;
    return this;
  }

  @Override public String getTitle() {
    return title;
  }

  @Override public SimpleWebViewParams setTitle(String title) {
    this.title = title;
    return this;
  }

  public String getUrl() {
    return url;
  }

  public SimpleWebViewParams setUrl(String url) {
    this.url = url;
    return this;
  }

  public boolean isRefreshButton() {
    return refreshButton;
  }

  public SimpleWebViewParams setRefreshButton(boolean refreshButton) {
    this.refreshButton = refreshButton;
    return this;
  }

  public boolean isLoadLocationUrl() {
    return loadLocationUrl;
  }

  public SimpleWebViewParams setLoadLocationUrl(boolean loadLocationUrl) {
    this.loadLocationUrl = loadLocationUrl;
    return this;
  }
}
